﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jzy.BLL.SiteAdmin;
using Jzy.Model.SiteAdmin;

namespace Jzy.Web.WebSite.Controls
{
    public partial class Contact : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CmsProfileBO profile = new CmsProfileBO();
            CmsProfileInfo info = profile.GetFirstInfo();

            litContactName.Text = info.ContactName;
            litMobile.Text = info.Mobile;
            lnkEmail.InnerText = info.Email;
            lnkEmail.HRef = "mailto:" + info.Email;
            litAddress.Text = info.Address;
        }
    }
}